@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
@namespace html url("http://www.w3.org/1999/xhtml");
#toolbar-menubar{
margin-top:2px;
background:none!important}

#toolbar-menubar[autohide="true"]{
margin-top:0}

.tabs-newtab-button > .toolbarbutton-icon{
list-style-image:url("chrome://browser/skin/tabbrowser/newtab.png")!important;
-moz-image-region:rect(18px,28px,36px,0)!important;
margin:2px 0!important;
opacity:.7}

.tabs-newtab-button:hover > .toolbarbutton-icon,
.tabs-newtab-button:hover:active > .toolbarbutton-icon{
opacity:1}

.tabs-container[overflow="true"] > .tabs-newtab-button > .toolbarbutton-icon{
list-style-image:url("chrome://browser/skin/tabbrowser/newtab-overflow.png")!important;
-moz-image-region:auto!important;
opacity:.5}

.tabs-container[overflow="true"] > .tabs-newtab-button:hover > .toolbarbutton-icon{
opacity:1}

toolbarbutton.chevron[open="true"],
toolbarbutton.chevron:hover,
toolbarbutton.chevron:hover:active{
background-color:#f5f9ff!important;
-moz-border-top-colors:#edf5fc #c0ccdb #f7f9fc!important;
-moz-border-right-colors:#edf5fc #bbcada #f0f4fa!important;
-moz-border-bottom-colors:#edf5fc #bac8da #f7f9fc!important;
-moz-border-left-colors:#edf5fc #bbcada #f0f4fa!important}

.tabbrowser-tab{
margin-bottom:1px!important}

.tabbrowser-tab .tab-left,
.tabbrowser-tab:not([selected="true"]):first-of-type .tab-left,
.tabbrowser-tab[selected="false"]:not(:first-of-type):not([afterselected="true"]) .tab-left,
.tabbrowser-tab[selected="true"]:not(:last-of-type) + .tabbrowser-tab:not([selected="true"]) .tab-left,
.tabbrowser-tab:not([selected="true"]):first-of-type + .tabbrowser-tab:not([selected="true"]):not(:last-of-type):not(:first-of-type) .tab-left,
.tabbrowser-tab:not([selected="true"]):last-of-type + .tabbrowser-tab:not([selected="true"]):not(:last-of-type):not(:first-of-type) .tab-left,
.tabbrowser-tab:not([selected="true"]):last-of-type + .tabbrowser-tab:not([selected="true"]):last-of-type .tab-left,
.tabbrowser-tab:not([selected="true"]):last-of-type + .tabbrowser-tab:not([selected="true"]):not(:last-of-type):not(:first-of-type) .tab-left,
.tabbrowser-tab:not([selected="true"]):not(:last-of-type):not(:first-of-type) + .tabbrowser-tab:not([selected="true"]):not(:last-of-type):not(:first-of-type) .tab-left,
.tabbrowser-tab:not([selected="true"]):not(:last-of-type):not(:first-of-type) + .tabbrowser-tab:not([selected="true"]) .tab-left,
.tabbrowser-tab[selected="true"]:not(:first-of-type) .tab-left,
.tabbrowser-tab:not([selected="true"]):not(:first-of-type) .tab-left{
background-position:-15px -108px!important}

.tabbrowser-tab:not([selected="true"]):first-of-type + .tabbrowser-tab:not([selected="true"]):not(:last-of-type):not(:first-of-type) .tab-left,
.tabbrowser-tab:not([selected="true"]):last-of-type + .tabbrowser-tab:not([selected="true"]):not(:last-of-type):not(:first-of-type) .tab-left,
.tabbrowser-tab:not([selected="true"]):last-of-type + .tabbrowser-tab:not([selected="true"]):last-of-type .tab-left,
.tabbrowser-tab:not([selected="true"]):last-of-type + .tabbrowser-tab:not([selected="true"]):not(:last-of-type):not(:first-of-type) .tab-left,
.tabbrowser-tab:not([selected="true"]):last-of-type + .tabbrowser-tab:not([selected="true"]):not([selected="false"]):not(:last-of-type):not(:first-of-type) .tab-left,
.tabbrowser-tab:not([selected="true"]):not(:last-of-type):not(:first-of-type) + .tabbrowser-tab:not([selected="true"]):not(:last-of-type):not(:first-of-type) .tab-left,
.tabbrowser-tab:not([selected="true"]):not(:last-of-type):not(:first-of-type) + .tabbrowser-tab:not([selected="true"]) .tab-left,
.tabbrowser-tab:not([selected="true"]):not(:first-of-type) .tab-left,
.tabbrowser-tab:not([selected]):last-of-type:not(:first-of-type) .tab-left,
.tabbrowser-tab[selected="false"]:not(:first-of-type):not([afterselected="true"]) .tab-left,
.tabbrowser-tab[selected="false"]:not(:last-of-type) + .tabbrowser-tab:not([selected="true"]) .tab-left,
.tabbrowser-tab:not(:last-of-type):not([selected="true"]) + .tabbrowser-tab:not([selected="true"]):not([selected="false"]):not(:last-of-type):not(:first-of-type) .tab-left,
.tabbrowser-tab:last-of-type[selected="false"] + .tabbrowser-tab:last-of-type[selected="false"] .tab-left,
.tabbrowser-tab:last-of-type + .tabbrowser-tab[selected="false"]:not(:last-of-type):not(:first-of-type) .tab-left,
.tabbrowser-tab:not([selected="true"]):not([selected="false"]):not(:last-of-type):not(:first-of-type) + .tabbrowser-tab:not([selected="true"]):not([selected="false"]):not(:last-of-type):not(:first-of-type) .tab-left,
.tabbrowser-tab:not([selected="true"]):not([selected="false"]):not(:last-of-type):not(:first-of-type) + .tabbrowser-tab[selected="false"] .tab-left{
background-position:-15px -216px!important}

.tabbrowser-tab:last-of-type[selected="true"] + .tabbrowser-tab:not([selected="true"]):not([selected="false"]):not(:last-of-type):not(:first-of-type) .tab-left{
background-position:-15px -54px!important}

.tabbrowser-tab .tab-right,
.tabbrowser-tab[beforeselected="true"] .tab-right,
.tabbrowser-tab:not([selected="true"])[beforeselected="true"] .tab-right,
.tabbrowser-tab[beforeselected="true"]:last-of-type .tab-right,
.tabbrowser-tab:not([selected="true"]):last-of-type .tab-right{
background-position:-15px -135px!important}

.tabbrowser-tab[selected="false"]:not(:last-of-type):not([beforeselected="true"]) .tab-right{
background-position:-15px -216px!important}

.tabbrowser-tab:hover .tab-left,
.tabbrowser-tab:not([selected=true]):first-of-type:hover .tab-left{
background-position:-15px -162px!important}

.tabbrowser-tab .tab-right,
.tabbrowser-tab:hover .tab-right,
.tabbrowser-tab[beforeselected="true"]:last-of-type:hover .tab-right,
.tabbrowser-tab:not([selected=true])[beforeselected="true"]:hover .tab-right,
.tabbrowser-tab:not([selected="true"]):last-of-type:hover .tab-right{
background-position:-15px -189px!important}

.tabbrowser-tab:not([selected]):last-of-type:not(:first-of-type):hover .tab-left,
.tabbrowser-tab[selected="false"]:not([afterselected="true"]):not(:first-of-type):hover .tab-left,
.tabbrowser-tab[selected="false"]:not(:last-of-type) + .tabbrowser-tab:not([selected="true"]):hover .tab-left,
.tabbrowser-tab[selected="false"]:not(:first-of-type):not([afterselected="true"]):hover .tab-left,
.tabbrowser-tab:not(:last-of-type):not([selected="true"]) + .tabbrowser-tab:not([selected="true"]):not([selected="false"]):not(:last-of-type):not(:first-of-type):hover .tab-left,
.tabbrowser-tab:last-of-type:not([selected="true"]) + .tabbrowser-tab:not([selected="true"]):not([selected="false"]):not(:last-of-type):not(:first-of-type):hover .tab-left,
.tabbrowser-tab:last-of-type[selected="false"] + .tabbrowser-tab:last-of-type[selected="false"]:hover .tab-left,
.tabbrowser-tab:last-of-type + .tabbrowser-tab[selected="false"]:not(:last-of-type):not(:first-of-type):hover .tab-left,
.tabbrowser-tab:not([selected="true"]):not([selected="false"]):not(:last-of-type):not(:first-of-type) + .tabbrowser-tab:not([selected="true"]):not([selected="false"]):not(:last-of-type):not(:first-of-type):hover .tab-left,
.tabbrowser-tab:not([selected="true"]):not([selected="false"]):not(:last-of-type):not(:first-of-type) + .tabbrowser-tab[selected="false"]:hover .tab-left,
.tabbrowser-tab:not([selected="true"]):first-of-type + .tabbrowser-tab:not([selected="true"]):not(:last-of-type):not(:first-of-type):hover .tab-left,
.tabbrowser-tab:not([selected="true"]):last-of-type + .tabbrowser-tab:not([selected="true"]):not(:last-of-type):not(:first-of-type):hover .tab-left,
.tabbrowser-tab:not([selected="true"]):last-of-type + .tabbrowser-tab:not([selected="true"]):last-of-type:hover .tab-left,
.tabbrowser-tab:not([selected="true"]):last-of-type + .tabbrowser-tab:not([selected="true"]):not(:last-of-type):not(:first-of-type):hover .tab-left,
.tabbrowser-tab:not([selected="true"]):not(:last-of-type):not(:first-of-type) + .tabbrowser-tab:not([selected="true"]):not(:last-of-type):not(:first-of-type):hover .tab-left,
.tabbrowser-tab:not([selected="true"]):not(:last-of-type):not(:first-of-type) + .tabbrowser-tab:not([selected="true"]):hover .tab-left,
.tabbrowser-tab:not([selected="true"]):not(:first-of-type):hover .tab-left{
background-position:-15px -270px!important}

.tabbrowser-tab:last-of-type[selected="true"] + .tabbrowser-tab:not([selected="true"]):not([selected="false"]):not(:last-of-type):not(:first-of-type):hover .tab-left{
background-position:-15px -81px!important}

.tabbrowser-tab[selected="false"]:not([beforeselected="true"]):hover + .tabbrowser-tab .tab-left,
.tabbrowser-tab[selected="false"]:not(:last-of-type):hover + .tabbrowser-tab:not([selected="true"]) .tab-left,
.tabbrowser-tab:not(:last-of-type):not([selected="true"]):hover + .tabbrowser-tab:not([selected="true"]):not([selected="false"]):not(:last-of-type):not(:first-of-type) .tab-left,
.tabbrowser-tab:last-of-type:not([selected="true"]):hover + .tabbrowser-tab:not([selected="true"]):not([selected="false"]):not(:last-of-type):not(:first-of-type) .tab-left,
.tabbrowser-tab:last-of-type[selected="false"]:hover + .tabbrowser-tab:last-of-type[selected="false"] .tab-left,
.tabbrowser-tab:last-of-type:hover + .tabbrowser-tab[selected="false"]:not(:last-of-type):not(:first-of-type) .tab-left,
.tabbrowser-tab:not([selected="true"]):not([selected="false"]):not(:last-of-type):not(:first-of-type):hover + .tabbrowser-tab:not([selected="true"]):last-of-type .tab-left,
.tabbrowser-tab:not([selected="true"]):not([selected="false"]):not(:last-of-type):not(:first-of-type):hover + .tabbrowser-tab:not([selected="true"]):not([selected="false"]):not(:last-of-type):not(:first-of-type) .tab-left,
.tabbrowser-tab:not([selected="true"]):not([selected="false"]):not(:last-of-type):not(:first-of-type):hover + .tabbrowser-tab[selected="false"] .tab-left,
.tabbrowser-tab:not([selected="true"]):first-of-type:hover + .tabbrowser-tab:not([selected="true"]):not(:last-of-type):not(:first-of-type) .tab-left,
.tabbrowser-tab:not([selected="true"]):last-of-type:hover + .tabbrowser-tab:not([selected="true"]):not(:last-of-type):not(:first-of-type) .tab-left,
.tabbrowser-tab:not([selected="true"]):last-of-type:hover + .tabbrowser-tab:not([selected="true"]):last-of-type .tab-left,
.tabbrowser-tab:not([selected="true"]):last-of-type:hover + .tabbrowser-tab:not([selected="true"]):not(:last-of-type):not(:first-of-type) .tab-left,
.tabbrowser-tab:not([selected="true"]):not(:last-of-type):not(:first-of-type):hover + .tabbrowser-tab:not([selected="true"]):not(:last-of-type):not(:first-of-type) .tab-left,
.tabbrowser-tab:not([selected="true"]):not(:last-of-type):not(:first-of-type):hover + .tabbrowser-tab:not([selected="true"]) .tab-left{
background-position:-15px -297px!important}

.tabbrowser-tab[selected="false"]:not(:last-of-type):not([beforeselected="true"]):hover .tab-right{
background-position:-15px -297px!important}

.tabbrowser-tab[selected="true"] .tab-left,
.tabbrowser-tab[beforeselected="true"] + .tabbrowser-tab[selected="true"] .tab-left{
background-position:-15px 0!important}

.tabbrowser-tab[selected="true"] .tab-right,
.tabbrowser-tab[selected="true"]:not(:last-of-type) .tab-right{
background-position:-15px -27px!important}

.tabbrowser-tab[afterselected="true"] .tab-left,
.tabbrowser-tab[selected="true"]:not(:last-of-type) + .tabbrowser-tab .tab-left,
.tabbrowser-tab[selected="true"]:not(:last-of-type) + .tabbrowser-tab:not([selected="true"]) .tab-left{
background-position:-15px -54px!important}

.tabbrowser-tab[afterselected="true"]:hover .tab-left,
.tabbrowser-tab[selected="true"]:not(:last-of-type) + .tabbrowser-tab:hover .tab-left{
background-position:-15px -81px!important}

.tabbrowser-tabs{
background-position:0 -60px!important}

#main-window[browsingmode="private"] .tabbrowser-tabs{
background-position:0 -120px!important}

.tabbrowser-tab .tab-middle,
.tabbrowser-tab:not([selected="true"]) .tab-middle{
background-position:0 -162px!important}

.tabbrowser-tab:hover .tab-middle{
background-position:0 -189px!important}

.tabbrowser-tab[selected="true"] .tab-middle{
background-position:0 -135px!important}

.tabbrowser-tab > .tab-close-button{
background-position:0 -162px!important}

.tabbrowser-tab:not([selected="true"]):hover > .tab-close-button{
background-position:0 -189px!important}

.tabbrowser-tab[selected="true"] > .tab-close-button{
background-position:0 -135px!important}